Implement a general Show typeclass in MetaCoq.Utils#1063
Conversation
|
If you want a version that does levels-based parenthesizing, Fiat Crypto has such a class: https://github.com/mit-plv/fiat-crypto/blob/master/src/Util/Strings/Show.v |
|
ExtLib has a |
|
Does ExtLib do level-based printing, so that it can parenthesize as much as needed but not more? In any case, it seems in #952 (comment) that we're receptive to depending on extlib |
|
ExtLib does not do level based printing that I am aware of. The underlying setup is parameterized by a My main motivation is to avoid repeated work, if you benefit from this, other might as well and that would make for reducing overall maintenance. |
* Implement a general Show typeclass in MetaCoq.Utils * Fix dependencies of new template-coq plugin
This allows to conveniently print anything for debugging purposes, or using the FFIs to print messages in the various extractions (the live and extracted ones, malfunction or certicoq)